package tmlxq.team.configserver.api;

import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhoupan
 * @date 2020/4/24 11:36
 * @info
 */
@RestController
@RefreshScope
public class Api {

    @Value("${user.config}")
    private String  config;
    @RequestMapping("/config")
    public String getConfig(){

        return  config;
    }
}
